using System;
using System.Diagnostics;

using Microsoft.VisualStudio.TestTools.UITesting;
using Microsoft.VisualStudio.TestTools.UITesting.WinControls;

namespace CodeStream.Testing.WebAutomation.InternetExplorer
{
    internal sealed class UIBrowserApplication : ApplicationUnderTest
    {
        public UIBrowserApplication(Process process) : base()
        {
            CopyFrom(ApplicationUnderTest.FromProcess(process));
            base.TechnologyName = "MSAA";
            base.SearchProperties.Add(UITestControl.PropertyNames.ControlType, ControlType.Window.Name);
        }

        public UIDevWindow DevWindow
        {
            get { return new UIDevWindow(this); }
        }

        public UIDevWindowMenu DevWindowMenu
        {
            get { return new UIDevWindowMenu(this); }
        }
    }
}
